using System;
using Cysharp.Threading.Tasks;
using MoonFramework.Template;

namespace MoonFramework.Buff
{
    public class DizzyBuff : BaseBuff
    {
        public async override void Enter()
        {
            base.Enter();
            await Dizzy();
        }   

        private async UniTask Dizzy()
        {
            await UniTask.Delay(TimeSpan.FromSeconds(BuffTime));
            Exit();
        }
    }
}